﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="login.ascx.cs" Inherits="Admin_login" %>
<style type="text/css">
    
    {
        font-weight: bold;
         font-size:14px;
        
    }
    
    {
        font-size:13px;
    }
    
    {
        font-weight: bold;
        font-size: 12px;
    }
    
</style>
<body style="font-family: Verdana; font-size: x-small">
<asp:LoginView ID="LoginView1" runat="server">
    <LoggedInTemplate>
       <table cellpadding="3" 
            cellspacing="4" style="width: 185px" bgcolor="gray" border="1" 
            bordercolor="White" >
            <tr>
                <td >
                     <b>
                     <asp:HyperLink ID="HyperLink2" runat="server" 
                         NavigateUrl="~/Admin/Default.aspx" ForeColor="White">Ana Sayfa</asp:HyperLink>
                     </b>
                     </td>
            </tr>
            <tr>
                <td >
                    <b>
                    <asp:HyperLink ID="HyperLink1" runat="server" 
                        NavigateUrl="~/Admin/adminmain.aspx?asayfa=menuler"  ForeColor="White">Menuler</asp:HyperLink>
                    </b>
                </td>
            </tr>
            <tr>
                <td >
                    <b>
                    <asp:HyperLink ID="HyperLink3" runat="server" 
                        NavigateUrl="~/Admin/adminmain.aspx?asayfa=adminhaftalikdp"  ForeColor="White">Haftalık Ders 
                    Programı</asp:HyperLink>
                    </b>
                </td>
            </tr>
            <tr>
                <td >
                    <b>
                    <asp:HyperLink ID="HyperLink4" runat="server" 
                        NavigateUrl="~/Admin/adminmain.aspx?asayfa=adminakts"  ForeColor="White">Akts Bilgi Paketi</asp:HyperLink>
                    </b>
                </td>
            </tr>
            <tr>
                <td >
                    <b>
                    <asp:HyperLink ID="HyperLink5" runat="server" 
                        NavigateUrl="~/Admin/adminmain.aspx?asayfa=bolumden" ForeColor="White">Bölümden Haberler</asp:HyperLink>
                    </b>
                </td>
            </tr>
            <tr>
                <td >
                    <b>
                    <asp:HyperLink ID="HyperLink6" runat="server" 
                        NavigateUrl="~/Admin/adminmain.aspx?asayfa=adminhaber" ForeColor="White">Haberler</asp:HyperLink>
                    </b>
                </td>
            </tr>
            <tr>
            <td >
                    <asp:LoginStatus ID="LoginStatus2" runat="server" ForeColor="Maroon" />
                </td>
            </tr>
        </table>
       
      
    </LoggedInTemplate>
    <AnonymousTemplate>
       
        <asp:Login ID="Login1" runat="server" BackColor="#F7F6F3" BorderColor="#E6E2D8" 
            BorderPadding="4" BorderStyle="Solid" BorderWidth="1px" Font-Names="Verdana" 
            Font-Size="0.8em" ForeColor="#333333" 
            Width="227px" >
            
            <TextBoxStyle Font-Size="Small" />
            
            <LoginButtonStyle BackColor="White" BorderColor="#C5BBAF" BorderStyle="Solid" 
                BorderWidth="1px" Font-Names="Verdana" Font-Size="Small" 
                ForeColor="#1C5E55" />
            <LayoutTemplate>
                <table border="0" cellpadding="0" cellspacing="0" 
                    style="border-collapse:collapse;">
                    <tr>
                        <td>
                            <table border="0" cellpadding="0" style="width: 253px">
                                <tr>
                                    <td align="center" colspan="2" 
                                        style="color:White;background-color:#5D7B9D;font-size:small;font-weight:bold;">
                                        G i  r i ş</td>
                                </tr>
                                <tr>
                                    <td align="right">
                                        <asp:Label ID="UserNameLabel" runat="server" AssociatedControlID="UserName" 
                                            style="font-size: small">Kullanıcı Adı:</asp:Label>
                                    </td>
                                    <td>
                                        <asp:TextBox ID="UserName" runat="server" Font-Size="Small"></asp:TextBox>
                                        <asp:RequiredFieldValidator ID="UserNameRequired" runat="server" 
                                            ControlToValidate="UserName" ErrorMessage="User Name is required." 
                                            ToolTip="User Name is required." ValidationGroup="ctl00$ctl00$Login1">*</asp:RequiredFieldValidator>
                                    </td>
                                </tr>
                                <tr>
                                    <td align="right">
                                        <asp:Label ID="PasswordLabel" runat="server" AssociatedControlID="Password" 
                                            style="font-size: small">Şifre:</asp:Label>
                                    </td>
                                    <td>
                                        <asp:TextBox ID="Password" runat="server" Font-Size="Small" TextMode="Password"></asp:TextBox>
                                        <asp:RequiredFieldValidator ID="PasswordRequired" runat="server" 
                                            ControlToValidate="Password" ErrorMessage="Password is required." 
                                            ToolTip="Password is required." ValidationGroup="ctl00$ctl00$Login1">*</asp:RequiredFieldValidator>
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan="2">
                                        <asp:CheckBox ID="RememberMe" runat="server" Text="Beni Hatırla" 
                                            style="font-size: small" />
                                    </td>
                                </tr>
                                <tr>
                                    <td align="center" colspan="2" style="color:Red; font-size: x-small;">
                                        <asp:Literal ID="FailureText" runat="server" EnableViewState="False"></asp:Literal>
                                    </td>
                                </tr>
                                <tr>
                                    <td align="right" colspan="2">
                                        <asp:Button ID="LoginButton" runat="server" BackColor="#FFFBFF" 
                                            BorderColor="#CCCCCC" BorderStyle="Solid" BorderWidth="1px" CommandName="Login" 
                                            Font-Names="Verdana" Font-Size="Small" ForeColor="#284775" 
                                            onclick="LoginButton_Click1" Text="G i r i ş" 
                                            ValidationGroup="ctl00$ctl00$Login1" />
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                </table>
                
            </LayoutTemplate>
            <InstructionTextStyle Font-Italic="True" ForeColor="Black" />
            <TitleTextStyle BackColor="#5D7B9D" Font-Bold="True" Font-Size="0.9em" 
                ForeColor="White" />
        </asp:Login>
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
        &nbsp;
    </AnonymousTemplate>
</asp:LoginView>
<asp:SqlDataSource ID="SqlDataSource1" runat="server" 
    ConnectionString="<%$ ConnectionStrings:acsbagla %>" 
    ProviderName="<%$ ConnectionStrings:acsbagla.ProviderName %>" 
    SelectCommand="SELECT * FROM [TblAdmin]"></asp:SqlDataSource>
